package com.xuetang9.t9.xinhuaxia.service;

import com.xuetang9.t9.xinhuaxia.beans.SocialCollection;

import java.util.List;

/**
 * @author 陈焱
 * @version 1.0
 * @desc
 * @time 2020/3/3 下午 2:16
 * @copyright liyq
 * @address 成都西部国际金融中心2栋2201
 **/

public interface ISocialCollectionService {
    /**
     * 根据发布帖子id查询数量
     * @param pid
     * @return
     */
    int getCollectionCountByPublishId(int pid);

    boolean addCollection(SocialCollection socialCollection);

    List<SocialCollection> querySocialCollectionbyuserid(SocialCollection socialCollection);

    int getCollectionCountByPiduid(SocialCollection socialCollection);

    boolean remove(SocialCollection socialCollection);
}
